package person.xjl.spring;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringBeanTest {
    @Test
    public void test(){
        //容器,读取beans.xml文件，创建bean
        ApplicationContext  applicationContext=new ClassPathXmlApplicationContext("aop.xml");
      Math math= (Math) applicationContext.getBean("math");
      math.add(100,5);
           math.subtract(100,5);
           math.mul(100,5);
           math.dev(100,5);
    }
}
